import { PermissionDto } from '@/api/permission.ts'

export default [
  {
    id: 'produce',
    name: '生产统计',
    shortName: '生产',
    enable: true,
    icon: 'i-base:package',
    show: true,
    type: 'MENU',
    code: 'Report',
    children: [
      {
        id: 'record',
        parentId: 'produce',
        code: 'Record',
        component: '/src/views/finance/record/record.vue',
        enable: true,
        icon: 'i-base:list',
        keepAlive: false,
        layout: '',
        method: null,
        name: '生产记录',
        shortName: '生产',
        back: false,
        weight: 20,
        path: '/produce/record',
        redirect: null,
        show: true,
        type: 'MENU',
      },
      {
        id: 'report',
        parentId: 'produce',
        code: 'Report',
        component: '/src/views/finance/report/report.vue',
        enable: true,
        icon: 'i-base:clipboard',
        keepAlive: false,
        layout: '',
        method: null,
        name: '生产报表',
        shortName: '报表',
        back: false,
        weight: 18,
        path: '/produce/report',
        redirect: null,
        show: true,
        type: 'MENU',
      },
    ],
  },
  {
    id: 'business',
    name: '业务管理',
    shortName: '业务',
    enable: true,
    icon: 'i-base:calendar',
    show: true,
    type: 'MENU',
    code: 'Business',
    children: [
      {
        id: 'style',
        parentId: 'business',
        code: 'Style',
        component: '/src/views/finance/style/style.vue',
        enable: true,
        icon: 'i-base:inbox',
        keepAlive: false,
        layout: '',
        method: null,
        name: '款式管理',
        shortName: '型号',
        back: false,
        weight: 20,
        path: '/business/style',
        redirect: null,
        show: true,
        type: 'MENU',
        children: [
          {
            id: 'process',
            parentId: 'style',
            code: 'Process',
            component: '/src/views/finance/process/process.vue',
            enable: true,
            icon: 'i-base:menu',
            keepAlive: false,
            layout: '',
            method: null,
            name: '工序管理',
            shortName: '工序',
            back: true,
            weight: 20,
            path: '/business/style/:id',
            redirect: null,
            show: false,
            type: 'MENU',
          },
        ],
      },
      {
        id: 'worker',
        parentId: 'business',
        code: 'Worker',
        component: '/src/views/finance/worker/worker.vue',
        enable: true,
        icon: 'i-base:users',
        keepAlive: false,
        layout: '',
        method: null,
        name: '员工管理',
        shortName: '员工',
        back: false,
        weight: 20,
        path: '/business/worker',
        redirect: null,
        show: true,
        type: 'MENU',
      },
    ],
  },
  {
    id: 'base',
    name: '基础管理',
    shortName: '基础',
    enable: true,
    icon: 'i-base:settings',
    show: true,
    type: 'MENU',
    code: 'Base',
    children: [
      {
        id: 'model',
        parentId: 'base',
        code: 'User',
        component: '/src/views/finance/model/model.vue',
        enable: true,
        icon: 'i-base:codepen',
        keepAlive: false,
        layout: '',
        method: null,
        name: '型号管理',
        shortName: '型号',
        back: false,
        weight: 20,
        path: '/base/model',
        redirect: null,
        show: true,
        type: 'MENU',
      },
      {
        id: 'group',
        parentId: 'base',
        code: 'Group',
        component: '/src/views/finance/group/group.vue',
        enable: true,
        icon: 'i-base:grid',
        keepAlive: false,
        layout: '',
        method: null,
        name: '工序组管理',
        shortName: '工序组',
        back: false,
        weight: 20,
        path: '/base/group',
        redirect: null,
        show: true,
        type: 'MENU',
      },
      {
        id: 'size',
        parentId: 'base',
        code: 'Size',
        component: '/src/views/finance/size/size.vue',
        enable: true,
        icon: 'i-base:copy',
        keepAlive: false,
        layout: '',
        method: null,
        name: '尺寸管理',
        shortName: '尺寸',
        back: false,
        weight: 20,
        path: '/base/size',
        redirect: null,
        show: true,
        type: 'MENU',
      },
      {
        id: 'process-template',
        parentId: 'base',
        code: 'ProcessTemplate',
        component: '/src/views/finance/processTemplate/processTemplate.vue',
        enable: true,
        icon: 'i-base:layers',
        keepAlive: false,
        layout: '',
        method: null,
        name: '工序模板管理',
        shortName: '工序模板',
        back: false,
        weight: 20,
        path: '/base/process-template',
        redirect: null,
        show: true,
        type: 'MENU',
      },
    ],
  },
] as PermissionDto[]
